home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / PROGRAMM / ASSEMBLE / H145.ZIP / ASXXXX_3.ZIP / M04PST.C < prev    next >
C/C++ Source or Header  |  1990-07-18  |  3KB  |  131 lines

  1. /* m04pst.c */
  2.  
  3. /*
  4.  * (C) Copyright 1989,1990
  5.  * All Rights Reserved
  6.  *
  7.  * Alan R. Baldwin
  8.  * 721 Berkeley St.
  9.  * Kent, Ohio  44240
  10.  */
  11.  
  12. #include <stdio.h>
  13. #include <setjmp.h>
  14. #include "asm.h"
  15. #include "m6804.h"
  16.  
  17. struct    mne    mne[] = {
  18.  
  19.     /* machine */
  20.  
  21.     NULL,    ".setdp",    S_SDP,        0,    0,
  22.  
  23.     /* system */
  24.  
  25.     NULL,    "CON",        S_ATYP,        0,    A_CON,
  26.     NULL,    "OVR",        S_ATYP,        0,    A_OVR,
  27.     NULL,    "REL",        S_ATYP,        0,    A_REL,
  28.     NULL,    "ABS",        S_ATYP,        0,    A_ABS|A_OVR,
  29.     NULL,    "NOPAG",    S_ATYP,        0,    A_NOPAG,
  30.     NULL,    "PAG",        S_ATYP,        0,    A_PAG,
  31.  
  32.     NULL,    ".byte",    S_BYTE,        0,    0,
  33.     NULL,    ".db",        S_BYTE,        0,    0,
  34.     NULL,    ".word",    S_WORD,        0,    0,
  35.     NULL,    ".dw",        S_WORD,        0,    0,
  36.     NULL,    ".ascii",    S_ASCII,    0,    0,
  37.     NULL,    ".asciz",    S_ASCIZ,    0,    0,
  38.     NULL,    ".blkb",    S_BLK,        0,    1,
  39.     NULL,    ".ds",        S_BLK,        0,    1,
  40.     NULL,    ".blkw",    S_BLK,        0,    2,
  41.     NULL,    ".page",    S_PAGE,        0,    0,
  42.     NULL,    ".title",    S_TITLE,    0,    0,
  43.     NULL,    ".sbttl",    S_SBTL,        0,    0,
  44.     NULL,    ".globl",    S_GLOBL,    0,    0,
  45.     NULL,    ".area",    S_DAREA,    0,    0,
  46.     NULL,    ".even",    S_EVEN,        0,    0,
  47.     NULL,    ".odd",        S_ODD,        0,    0,
  48.     NULL,    ".if",        S_IF,        0,    0,
  49.     NULL,    ".else",    S_ELSE,        0,    0,
  50.     NULL,    ".endif",    S_ENDIF,    0,    0,
  51.     NULL,    ".include",    S_INCL,        0,    0,
  52.     NULL,    ".radix",    S_RADIX,    0,    0,
  53.     NULL,    ".org",        S_ORG,        0,    0,
  54.     NULL,    ".module",    S_MODUL,    0,    0,
  55.  
  56.     /* 6804 */
  57.  
  58.     NULL,    "jmp",        S_TYP1,        0,    0x9000,
  59.     NULL,    "jsr",        S_TYP1,        0,    0x8000,
  60.  
  61.     NULL,    "sta",        S_TYP2,        0,    0xE1,
  62.     NULL,    "staa",        S_TYP2,        0,    0xE1,
  63.     NULL,    "inc",        S_TYP2,        0,    0xE6,
  64.     NULL,    "dec",        S_TYP2,        0,    0xE7,
  65.  
  66.     NULL,    "lda",        S_TYP3,        0,    0xE0,
  67.     NULL,    "ldaa",        S_TYP3,        0,    0xE0,
  68.     NULL,    "add",        S_TYP3,        0,    0xE2,
  69.     NULL,    "adda",        S_TYP3,        0,    0xE2,
  70.     NULL,    "sub",        S_TYP3,        0,    0xE3,
  71.     NULL,    "suba",        S_TYP3,        0,    0xE3,
  72.     NULL,    "cmp",        S_TYP3,        0,    0xE4,
  73.     NULL,    "cmpa",        S_TYP3,        0,    0xE4,
  74.     NULL,    "and",        S_TYP3,        0,    0xE5,
  75.     NULL,    "anda",        S_TYP3,        0,    0xE5,
  76.  
  77.     NULL,    "clrx",        S_CLR,        0,    0x80,
  78.     NULL,    "clry",        S_CLR,        0,    0x81,
  79.  
  80.     NULL,    "ldxi",        S_LD,        0,    0x80,
  81.     NULL,    "ldyi",        S_LD,        0,    0x81,
  82.  
  83.     NULL,    "mvi",        S_MVI,        0,    0xB0,
  84.  
  85.     NULL,    "asla",        S_APOST,    0,    0xFA,
  86.     NULL,    "clra",        S_APOST,    0,    0xFB,
  87.     NULL,    "inca",        S_APOST,    0,    0xFE,
  88.     NULL,    "deca",        S_APOST,    0,    0xFF,
  89.  
  90.     NULL,    "bap",        S_BPM,        0,    0xC7,
  91.     NULL,    "bam",        S_BPM,        0,    0xCF,
  92.     NULL,    "bxpl",        S_BXPM,        0,    0xC7,
  93.     NULL,    "bxmi",        S_BXPM,        0,    0xCF,
  94.     NULL,    "bypl",        S_BYPM,        0,    0xC7,
  95.     NULL,    "bymi",        S_BYPM,        0,    0xCF,
  96.  
  97.     NULL,    "brclr",    S_BTB,        0,    0xC0,
  98.     NULL,    "brset",    S_BTB,        0,    0xC8,
  99.     NULL,    "bclr",        S_BSC,        0,    0xD0,
  100.     NULL,    "bset",        S_BSC,        0,    0xD8,
  101.  
  102.     NULL,    "bcc",        S_BRA,        0,    0x40,
  103.     NULL,    "bhs",        S_BRA,        0,    0x40,
  104.     NULL,    "bcs",        S_BRA,        0,    0x60,
  105.     NULL,    "blo",        S_BRA,        0,    0x60,
  106.     NULL,    "bne",        S_BRA,        0,    0x00,
  107.     NULL,    "beq",        S_BRA,        0,    0x20,
  108.  
  109.     NULL,    "nop",        S_INH,        0,    0x20,
  110.     NULL,    "inx",        S_INH,        0,    0xA8,
  111.     NULL,    "incx",        S_INH,        0,    0xA8,
  112.     NULL,    "iny",        S_INH,        0,    0xA9,
  113.     NULL,    "incy",        S_INH,        0,    0xA9,
  114.     NULL,    "txa",        S_INH,        0,    0xAC,
  115.     NULL,    "tya",        S_INH,        0,    0xAD,
  116.     NULL,    "rrb",        S_INH,        0,    0xB1,
  117.     NULL,    "rti",        S_INH,        0,    0xB2,
  118.     NULL,    "rts",        S_INH,        0,    0xB3,
  119.     NULL,    "coma",        S_INH,        0,    0xB4,
  120.     NULL,    "rola",        S_INH,        0,    0xB5,
  121.     NULL,    "stop",        S_INH,        0,    0xB6,
  122.     NULL,    "wait",        S_INH,        0,    0xB7,
  123.     NULL,    "dex",        S_INH,        0,    0xB8,
  124.     NULL,    "decx",        S_INH,        0,    0xB8,
  125.     NULL,    "dey",        S_INH,        0,    0xB9,
  126.     NULL,    "decy",        S_INH,        0,    0xB9,
  127.     NULL,    "tax",        S_INH,        0,    0xBC,
  128.     NULL,    "tay",        S_INH,        S_END,    0xBD,
  129.  
  130. };
  131.